<template>
  <div id="about">
    <el-card class="box-card">
      <template #header>
        <div class="card-header">
          <div>关于我</div>
          <div class="title">{{$store.state.centerData[0]? $store.state.centerData[0].motto :''}}
          </div>
        </div>
      </template>
      <div class="item">昵称：{{$store.state.centerData[0]? $store.state.centerData[0].uname :''}}
      </div>
      <div class="item">电话：{{$store.state.centerData[0]? $store.state.centerData[0].tel :''}}
      </div>
      <div class="item">微信：{{$store.state.centerData[0]? $store.state.centerData[0].wechat :''}}
      </div>
      <div class="item">Q Q：{{$store.state.centerData[0]? $store.state.centerData[0].qq :''}}
      </div>
    </el-card>
    <about-map v-if="$store.state.centerData[0]" />
  </div>
</template>

<script>
import { reactive, toRefs } from 'vue'
import { useStore } from 'vuex'
import AboutMap from '@/components/about/AboutMap.vue'
export default {
  components: { AboutMap },
  name: 'AboutCenter',
  setup (props) {
    const store = useStore()

  }
}
</script>
<style lang="scss" scoped>
#about {
  min-height: 500px;
  max-width: 1200px;
  margin: auto;
}
.title {
  color: #888;
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 12px;
}
.card-header {
  display: flex;
  justify-content: center;
  flex-direction: column;
  color: #888;
  font-weight: 900;
  letter-spacing: 3px;
  font-size: 25px;
  > div:nth-child(1) {
    text-align: center;
  }
  > div:nth-child(2) {
    text-align: right;
  }
}

.text {
  font-size: 14px;
}

.item {
  margin-bottom: 18px;
  padding-left: 20px;
  user-select: text;
}

.box-card {
  margin-top: -50px;
  color: #888;
  font-weight: 400;
  font-size: 12px;
}
</style>